package com.xxxx.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.xxxx.entity.Permission;
import com.xxxx.entity.RolePermission;
import com.xxxx.mapper.RolePermissionMapper;
import com.xxxx.service.IRolePermissionService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wangyan
 * @since 2017-08-06
 */
@Service
public class RolePermissionServiceImpl extends ServiceImpl<RolePermissionMapper, RolePermission> implements IRolePermissionService {


    @Override
    public List<Permission> selectPermissionsByRoleId(Long roleId) {
        return baseMapper.selectPermissionByRoleId(roleId);
    }
}
